/*
 * game.js
 */



$.get("http://120.77.149.2/Merchant/Domain/Grouplist", function(result) {
	var length = result.Data.length;
		console.log(result.Data);

//	console.log(result.Data.Data[0].CreateTime.substring(6, 19) - 0)
	
	var box = document.getElementById("myBox");
	var text = document.getElementById("text");
	//      var box = document.body;
	//      console.log(body)
		text.innerHTML = "共计 "+ length +" 条数据"
	for(var index = 0; index <= length; index++) {
		

		
		box.innerHTML += 	" <tr><td class='text-center active'>" + result.Data[index].GroupId + "</td>" +
			"<td class='text-center '>" + result.Data[index].MerchantId + "</td>" +
			"<td class='text-center success'>" + result.Data[index].Name + "</td>" +
			"<td class='text-center '>" + result.Data[index].Url + "</td>" +
			"<td class='text-center danger'>" + result.Data[index].GetURL + "</td></tr>"
			

		
	}
});